import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DIMENSIONING: AppRouteRecordRaw = {
    path: '/dimensioning',
    name: 'dimensioning',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.dimensioning',
        requiresAuth: true,
        icon: 'iconfont icon-shenhemokuai1',
        order: 1,
        hideInMenu: false,
        permCode: 'A010000000',
    },
    children: [
        {
            path: 'project',
            name: 'Project',
            component: () => import('@/views/dimensioning/project/index.vue'),
            meta: {
                locale: 'menu.dimensioning.project',
                requiresAuth: true,
                roles: ['*'],
                hideInMenu: false,
                permCode: 'A010100000',
            },
        },
        {
            path: 'task',
            name: 'Task',
            component: () => import('@/views/dimensioning/task/index.vue'),
            meta: {
                locale: 'menu.dimensioning.task',
                requiresAuth: true,
                roles: ['*'],
                hideInMenu: true,
            },
        },
        {
            path: 'projectDetail',
            name: 'projectDetail',
            // component: () => import('@/views/dimensioning/project/projectDetail.vue'),
            component: () => import('@/views/dimensioning/project/project-detail.vue'),
            meta: {
                locale: '新建',
                requiresAuth: true,
                roles: ['*'],
                hideInMenu: true,
            },
        },
        {
            path: 'projectDetailView',
            name: 'projectDetailView',
            component: () => import('@/views/dimensioning/project/projectDetailView.vue'),
            meta: {
                locale: '',
                requiresAuth: true,
                roles: ['*'],
                hideInMenu: true,
            },
        },
        {
            path: '/readSeries',
            name: 'ReadSeries',
            component: () => import('@/views/queryTaskSeries/index.vue'),
            meta: {
                locale: '',
                requiresAuth: true,
                roles: ['*'],
                hideInMenu: true,
            },
            children: []
        }
        // {
        //     path: 'readPathology',
        //     name: 'ReadPathology',
        //     component: () => import('@/views/dimensioning/project/readPathology.vue'),
        //     meta: {
        //         locale: '数字阅片',
        //         requiresAuth: true,
        //         roles: ['*'],
        //         hideInMenu: true,
        //     },
        // }
    ],
};

export default DIMENSIONING;